package edu.sctu.practice.class01.chengongsuo.yangxu.assign2;

/**
 * Created by Administrator on 2015/10/8.
 */
public class CalculateDemo {
    public static void main(String[] args) {
        getNumber(new Rational(5,0));
    }

    public static void getNumber(Rational rational){

        System.out.println("The result of plus: "+rational.plus());
        System.out.println("The result of minus: "+rational.minus());
        System.out.println("The result of multiply: "+rational.multiply());
        System.out.println("The result of divide: "+rational.divide());
    }
}
